<?php $this->pageTitle=CHtml::encode($model->profession.' en '.$model->zone); ?>

<h1><?php echo CHtml::encode($model->profession); ?></h1>

<p>
[<?php echo CHtml::link('Volver al listado',array('browse','page'=>$_REQUEST['return_page'])); ?>]
</p>

<table class="dataGrid">
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('name')); ?>
</th>
    <td><?php echo CHtml::encode($model->name); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('profession')); ?>
</th>
    <td><?php echo CHtml::encode($model->profession); ?>
</td>
</tr>
<?php if ($model->age): ?>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('age')); ?>
</th>
    <td><?php echo CHtml::encode($model->age); ?>
</td>
</tr>
<?php endif; ?>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('zone')); ?>
</th>
    <td><?php echo CHtml::encode($model->zone); ?>
</td>
</tr>
</table>

<?php if(Yii::app()->user->hasFlash('unsubscribed')): ?>
<p style="background: #00FF99;">
<?php echo Yii::app()->user->getFlash('unsubscribed'); ?>
</p>
<?php else: ?>

<p style="background: #FFFFCC;">
DESEAS DARTE DE BAJA?
</p>

<?php echo CHtml::beginForm(); ?>
<p>
  <input type="hidden" name="UnsubscribeForm" value="yes" />
  <?php echo CHtml::submitButton('Dame de baja'); ?>
<?php echo CHtml::button('Cancelar', array('onclick'=>'window.location=\''.CHtml::normalizeUrl(array('browse'))."';")); ?>
</p>
<?php echo CHtml::endForm(); ?>
<?php endif; ?>